//
//  SelDeliveryDishViewController.h
//  OrderSeat
//
//  Created by 王威 on 13-12-6.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SelectDishLeftCell.h"
#import "SelectDishRightCell.h"
#import "MWPhotoBrowser.h"
#import <AssetsLibrary/AssetsLibrary.h>

@class SelDeliveryDishDataSource;
@interface SelDeliveryDishViewController : BaseViewController<SelectDishLeftCellDelegate,SelectDishRightCellDelegate,MWPhotoBrowserDelegate>

@property (strong, nonatomic) IBOutlet UITableView *leftTable;
@property (strong, nonatomic) IBOutlet UITableView *rightTable;
@property (strong, nonatomic) IBOutlet UILabel *totalCountLabel;
@property (strong, nonatomic) IBOutlet UILabel *totalMoneyLabel;
@property (weak, nonatomic) IBOutlet UIView *footerView;

@property (strong, nonatomic) NSString *shopId;
@property (strong, nonatomic) NSString *tel;
@property (strong, nonatomic) NSMutableArray *photoList;
@property (strong, nonatomic) NSMutableArray *selectedDishList;
@property (strong, nonatomic) SelDeliveryDishDataSource *dataSource;

- (id)initWithShopId:(NSString*)shopId;

@end

@interface SelDeliveryDishDataSource : BaseDataSource<UITableViewDelegate,UITableViewDataSource>

@property (strong, nonatomic) NSMutableArray *catList;
@property (strong, nonatomic) NSMutableArray *dishList;
@property (strong, nonatomic) NSMutableDictionary *dishCache;
@property (strong, nonatomic) SelDeliveryDishViewController *viewController;

- (void)fetchDishCategories;
- (void)fetchDishWithCatId:(NSString*)catId;

@end
